<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>IO</title>
    <script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
</head>
<body>
</body>
<script>

    var socket = io.connect('127.0.0.1:8000');
    socket.on("connect",function(){
        
    });
    socket.on('message',function (data) {
    	console.log(data);
    });
  	socket.on('roomMessage',function(data){
    	console.log(data);
    });
</script>
</html>
